# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-ovos-phal-plugin-network-manager
pkgver=1.3.1
pkgrel=0
pkgdesc="NetworkManager plugin for PHAL"
url="https://github.com/OpenVoiceOS/ovos-PHAL-plugin-network-manager"
# loongarch64: blocked by py3-ovos-plugin-manager
arch="noarch !loongarch64"
license="Apache-2.0"
depends="
	networkmanager-cli
	py3-dbus-next
	py3-ovos-bus-client
	py3-ovos-plugin-manager
	py3-ovos-utils
	"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/OpenVoiceOS/ovos-PHAL-plugin-network-manager/archive/refs/tags/$pkgver.tar.gz"
options="!check" # No tests
builddir="$srcdir/ovos-PHAL-plugin-network-manager-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
9ab5ec56b3dfcc7fa8e8cbfeb296d57c56a4137db95c02e87f4870b534140d44bcd24aabdaa4280709a6a55d6be15ed928df9bbd39e0d9fd28d3df4fb1f28664  py3-ovos-phal-plugin-network-manager-1.3.1.tar.gz
"
